058 how to use function keys on hmi
在本课中,如果您注意到我们有完整的功能键 f1 f2 f3 和 f4,我们将了解如何在西门子 HMI 中使用功能键。
In this lesson we'll understand how to use function keys in Siemens HMI if you notice here we have full function keys f1 f2 f3 and f4.
现在,这些功能键可用于启动输入,或者您可以使用它来导航屏幕,或者您可以将其用于您喜欢的任何其他目的。
Now these function keys can be used to either actuate an input or you can use it to navigate the screen or you can use it for any other purpose you like.
这个功能键背后的基本思想是,如果您在本例中注意到,如果我必须移动到框动画,我可以通过按此按钮来做到这一点,或者我也可以通过好吧,按下这些按钮,所以第一个想法是我们使用这个 f1 进行屏幕导航,所以一旦我导航到这个屏幕,如果我再次按下 f1,你会注意到这个 f1 现在用于移动盒子或移动电机,就像这是 f2,这是 f1,所以这个 f1 在这个屏幕中具有多种功能,f1 用于沿一个方向移动传送带,在主屏幕中,f1 用于导航到另一个屏幕,现在让我们再举一个例子,如果我转到门动画现在在这里,如果我再次按 f1 ,它会将门向上移动,因此这个 f1 有另一个功能。
And the basic idea behind this function key is that you can use it as a local assignment or global assignment if you notice in this example if I have to move to box animations I can do that by pressing this button or I can also do that by pressing those buttons alright so the first idea is we have used this f1 for screen navigation so once if I navigate to this screen and if I press f1 again you will notice that this f1 is now used to move the box or to move the motor like this is f2 and this is f1, so this f1 has multiple functions in this screen f1 is used to move the conveyor in one direction and in home screen f1 is used to navigate to another screen all right now let's take another example if I go to door animation now here if I again press f1 , it will move the door up so this f1 has another function.
因此,类似地,如果我转到框动画,并且如果我按 f2,则用于沿顺时针方向沿该方向移动电机,f2 也用于导航到第二个屏幕到屏幕,这里 f2 还用于向下移动门。
So similarly if I go to box animation and if I press f2 this is used to move motor in this direction in clockwise direction also f2 is used to navigate to second screen to the screen and here f2 is also used to move the door down.
所以这个f1和f2已经被分配了本地赋值。
So this f1 and f2 have been assigned local assignment.
这些已分配给本地功能,这些功能在不同的屏幕上用于不同的目的,但如果我检查 f4.
These have been assigned local functions which are used for different purpose at different screens but if I check f4.
F4 已被分配了一个全局功能,其功能是移动到主屏幕,无论您身在何处,如果您处于盒子动画中,这将返回到此功能,如果您处于门动画中,这将带您到主屏幕即使您处于坦克动画中,也会带您到主屏幕。
F4 has been assigned a global function whose function is to move to home screen doesn't matter wherever you are if you're in box animation this will go back to this will take you to the home screen if you are in door animation this will take you to home screen even if you are in Tank animation.
因此,让我们了解如何将本地和全局函数分配给该函数键,这非常简单,如果您转到黄色的根屏幕,您可以在底部看到一个黄色三角形,表明它已分配了本地函数。
So let's understand how to assign local and global function to this function Key's this is very simple if you go to your root screen here this yellow you can see a yellow triangle at the bottom indicate this has been assigned a local function.
如果我点击这个,并且如果您在按键功能中检查其事件,我会看到一个标志激活屏幕,这是我的 Box 屏幕,您有这个逻辑,我希望您了解我的 Box 屏幕在哪里。
If I click on this one and if you check its event in the press key function I have a sign activate screen which is my Box screen and you have this logic I hope you understand where is my box screens.
好的?
All right?
现在,在 f2 中,类似地,这已用于导航到门屏幕,而对于 f3,这用于导航到坦克屏幕。
Now in f2 similarly this has been used to navigate to door screen and for f3 this is for Tank screen.
现在如果我去我的盒子...
Now if I go to my box...
如果我注意到 f1 再次有这个三角形的矩形,我很抱歉,这个 f1 已在按下键时被分配设置 - '标签 7' 好吧,所以这里我们有一个不同的功能,对于 f2 这里我们有“标签 5”和这些标签位于我的 PLC 内部,用于驱动电机。
box screen here if I notice f1 is again having this rectangle that's triangle I'm sorry and this f1 has been assigned set while key is pressed- 'Tag 7' alright so this is here we have a different function and for f2 here we have 'Tag 5' and these tags are inside my PLC which are used to actuate the motor.
好的?
All right?
因此,您所要做的就是单击此按钮并转到此事件 - 分配此功能好吗?
So all you have to do is just click on this button and go to this event - assign this function alright?
如果您再次转到此处的门动画,则 f1 已被分配标签“向上”并且 f2 已被分配标签...
And if you go to door animation here again f1 has been assigned Tag 'up' and f2 has been assigned tag...
应该有?
there should be?
好吧!?
alright!?
这是用于设置位标签“向上”的这是用于重置位标签“向上”的,如果您注意到 f4 这是一个更大的三角形,并且它被分配了绿色,屏幕意味着它是全局分配,在这里您可以会看到它已经褪色了,那么绿色是怎么来的呢?
this is this is for set bit tag 'up' this is for reset bit tag 'up' alright and if you notice f4 this is a bigger triangle and this is assigned with color green and the screen means it is the global assignment and here you will see this is faded so how does green comes?
转到此属性并选择使用全局分配,当您选中此按钮时,这将变为绿色,您只能分配一个功能,如果您选中此 f1,则此处不会选中。
Go to this property and select use global assignment when you check this button this will go to green and you can only assign one function and if you check this f1 this is not checked here..
如果我单击 f1 并在此处检查,这将被全局分配。
if I click f1 and check here this will be globally assigned.
好的?
All right?
全局函数将是在这里分配的函数,因此在本地分配的情况下 - 在全局分配的情况下不要选中此选项 - 只需选中此选项?
And the global function will be the one which is assigned here so in case of local assignment - do not check this option in case of global assignments - just check this option?
就这么简单,您可以从 NFI 网站 (www.nfiautomation.org) 下载此逻辑,您将在课程中找到链接,您还可以验证您是否正在使用此功能键(如果它不起作用)检查我们的逻辑,您可以使用它,我希望您知道在 f1 中,如果您使用任何功能键,您将有很多事件可以从这里激活。
As simple as that so you can download this logic from NFI website (www.nfiautomation.org) you'll find the links in the course and you can also verify if you're working with this function keys if it is not working you can check our logic and you can work with that and I hope you know that in f1 if you in any of the function key you have a lot of events which you're going to activate from here.
好的?
All right?
所以这取决于你想用 f1、f2、f3 做什么,因此这些是额外的键,你可以将它们用作本地分配或全局分配,谢谢你的关注
So it's up to you what you want to do with f1, f2, f3 therefore these are the extra keys which you can use as a local assignment or as a global assignment thank you for watching you you